package com.xuecheng.api;

import com.xuecheng.framework.domain.cms.CmsSite;
import com.xuecheng.framework.domain.cms.CmsSiteServer;
import com.xuecheng.framework.domain.cms.request.QuerySiteRequest;
import com.xuecheng.framework.domain.cms.request.QuerySiteServerRequest;
import com.xuecheng.framework.domain.cms.response.SiteResult;
import com.xuecheng.framework.domain.cms.response.SiteServerResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;

public interface CmsSiteControllerApi {
    public QueryResponseResult findList(int page, int size, QuerySiteRequest siteRequest);

    //新增站点服务器
    @ApiOperation("新增站点")
    public SiteResult add(CmsSite cmsSite);

    //根据id查询
    @ApiOperation("根据id查询")
    public CmsSite findById(String id);

    //修改站点信息
    @ApiOperation("修改站点信息")
    public SiteResult edit(String id, CmsSite cmsSite);

    //删除站点服务器
    @ApiOperation("删除站点")
    public ResponseResult delete(String id);
}
